package winapi
/****************
我写的log文件类
****************/
import (
	"log"
	"os"
)

type Logs struct{
    f *os.File
    logger *log.Logger
}

func (l *Logs)Init(logfile string){
    var err error
    l.f, err = os.Create(logfile)
    if err != nil {
		log.Fatalln("fail to create winapi_showusergui.log file!")
	}
    l.logger = log.New(l.f, "", log.LstdFlags|log.Llongfile)
}

func (l *Logs) Println(v ...interface{}){
	l.logger.Println(v)
}